var baseUrl = 'http://192.168.1.5:3000';
// var baseUrl = 'http://127.0.0.1:3000';
// var token = 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJfaWQiOiI1ZTA4YjBmMDZiNWJkNTUxNGUzNDM4MDciLCJuYW1lIjoid2FuZyIsImlhdCI6MTU4MTQyOTA4MCwiZXhwIjoxNTgxNTE1NDgwfQ.WqscKzRMSr23AZPokVRUJNZj56LkAiW1so4NJ3MZ98w';
var token='token'
var sessionkey = 'session_key';//本地存储到微信seesionkey
var PostDataKey = 'PostDataKey';
var telephoneKey='telephoneKey';

//不知道在其他页面如何使用
function checkSession(){
				uni.checkSession({
					success: (e) => {
						var weixinsession = uni.getStorageSync(config.sessionkey);
						if (weixinsession.length > 0) {
							uni.navigateTo({
								url: '../loginbytelephone/loginbytelephone'
							})
						} else {
							uni.navigateTo({
								url: '../authorityRequst/authorityRequst'
							})
						}
				
					},
					fail: () => {
						console.log("yijinggoqdi")
						uni.navigateTo({
							url: '../authorityRequst/authorityRequst'
						})
					}
				});
			};
module.exports = {
	baseUrl,
	token,
	sessionkey,
	PostDataKey,
	telephoneKey,
	checkSession
	
}